<?php
$playertask = $game->rw_get_player_wwc();
$mytaskinfo = '';
$taskhtml='';
$rwzt='';
for ($n=0;$n<count($playertask);$n++){
    $renwu = $playertask[$n];
    $rwid = $renwu->rwid;
    $rwname = $renwu->rwname;
    $rwlx = $renwu->rwlx;

    $mytaskinfo = $game->create_url("cmd=playertaskinfo&rwid=$rwid",$rwname);

    if ($rwlx==2 && $renwu->rwzt !=3){
        $taskhtml .='[每日]';
    }
    if ($rwlx==3 && $renwu->rwzt != 3){
        $taskhtml .='[主线]';
    }
    if ($rwlx==1 && $renwu->rwzt != 3){
        $taskhtml .='[普通]';
    }

    switch ($renwu->rwzt){
        case 1:
            $taskhtml .=<<<HTML
            <img src="./images/wen.gif"/>$mytaskinfo<br/>
HTML;
            break;
        case 2:
            $taskhtml .=<<<HTML
            <img src="./images/tan.gif"/>$mytaskinfo<br/>
HTML;
            break;
        case 3:
            break;
    }
}

$变量_任务_玩家任务列表 = (object)[
    "任务列表" => $mytaskinfo
];

$dis_任务_玩家任务列表 = $game->dis_get('排版_任务_玩家任务列表');

eval("\$out_html = \"$dis_任务_玩家任务列表->dis_string\";");
$out_html = str_replace("<br/><br/>", "<br/>",$out_html);
$out_html = str_replace("<br/><br/>", "<br/>",$out_html);
$out_html = str_replace("</div><br/>", "</div>",$out_html);
echo $out_html;